import Vue from 'vue'
import Vuex from 'vuex'
import system from './modules/system'
import card from './modules/card'
import modals from './modules/modals'

Vue.use(Vuex)

const state = {}
// const plugins = store => {
//   store.subscribe((mutation, state) => {
//     console.log(mutation, state)
//   })
// }
export default new Vuex.Store({
  // plugins: [plugins], // 注册插件
  state,
  modules: {
    system,
    card,
    modals
  }
})
